/*创建服务器*/
let http = require('http');
let url = require('url');
let util = require('util');
let fs = require('fs');

http.get('http://www.imooc.com.u.card', function (res) {
    let data = '';
    res.on('data', function (chunk) {
        data += chunk;
    })

    res.on('end',function () {
        let result = JSON.parse(data);

    })

});